home *** CD-ROM | disk | FTP | other *** search
- #ifndef Course_h
- #define Course_h
-
- #include <iostream.h>
- #include <bool.h>
- #include <String.h>
-
- #include "Example.h"
- #include "Student.h"
- #include "Teacher.h"
- #include "Collection.h"
-
- class Course: public Example {
- String number;
- String name;
- int capacity;
- public:
- static Collection *All;
- Course(String nu, String na):
- number(nu),name(na),capacity(25) {
- All->add(this);
- };
- void print() {
- cout << "Course: " << number << " - " << name << "\n";
- };
- bool identify(String &);
- Example* alike(String &);
- void maintain();
- bool add(Example *){return FALSE;};
- Example* select(){return NULL;};
- };
-
- #endif
-